package com.accp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 辉
 * @since 2019-12-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TzTransport extends Model<TzTransport> {

    private static final long serialVersionUID=1L;

    /**
     * 运费模板id
     */
    @TableId(value = "transport_id", type = IdType.AUTO)
    private Long transportId;

    /**
     * 运费模板名称
     */
    private String transName;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 店铺id
     */
    private Long shopId;

    /**
     * 收费方式（0 按件数,1 按重量 2 按体积）
     */
    private Integer chargeType;

    /**
     * 是否包邮 0:不包邮 1:包邮
     */
    private Integer isFreeFee;

    /**
     * 是否含有包邮条件 0 否 1是
     */
    private Integer hasFreeCondition;


    @Override
    protected Serializable pkVal() {
        return this.transportId;
    }

}
